package com.chen.springcloud.demo.client.remote;

import com.chen.springcloud.demo.client.fallback.UAAClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author chentian
 * @date 2021/12/25
 */
@FeignClient(value = "uaa-provider",
        fallbackFactory = UAAClientFallbackFactory.class,
        path = "/uaa-provider/api/uaa")
public interface UAAClient {
    @GetMapping("/hello")
    String hello();

    @GetMapping("/hello/word/{word}")
    String word(@PathVariable(value = "word") String word);
}
